package com.woniuxy.lab.woniu_lab.service.dto.chargeDto;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@ApiModel("我的订单信息")
public class MyOrderDto {


    /**
     * 消费单号
     */
    @ApiModelProperty(value = "消费单号",example = "ABC123456")
    private String no;


    /**
     * 购买的靶场ID(VIP服务为-1，终身会员为-2)
     */
    @ApiModelProperty(value = "购买的靶场ID(VIP服务为-1，终身会员为-2)",example = "-1")
    private Integer itemId;

    /**
     * 消费内容(CTL/EXPER/VIP/FVIP)
     */
    @ApiModelProperty(value = "消费内容",example = "VIP")
    private String info;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",example = "2023-01-23 12:23:12")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 消费金额
     */
    @ApiModelProperty(value = "消费金额",example = "512.00")
    private BigDecimal money;
}
